<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">
<h:head>

	<style type="text/css">
.ui-layout-north {
	z-index: 20 !important;
	overflow: visible !important;;
}

.ui-layout-north .ui-layout-unit-content {
	overflow: visible !important;
}

.ui-widget {
	font-size: 10px !important;
}

.size {
	width: 650px;
	position: relative;
	left: 28%;
	top: 10%;
}

.centro {
	top: 50%
}

.tabela {
	width: 750px;
}
</style>


	<title>Estorno de Lançamento</title>
</h:head>

<h:body>
	<ui:decorate template="/templateBase.xhtml">

		<ui:define name="center">
			<h:form prependId="true" id="formLancamento">
				<br />
				<br />
				<br />
				<br />
				<p:panel header="Estorno de Lançamento" styleClass="size"
					toggleable="true"
					footer="SIGLAS - Sistema de Gerenciamento de Laboratório de Análise de Solo">
					<p:growl id="growl" life="3000" />
					<br />
					<br />
					<h:panelGrid columns="3">
						<h:outputText value="ID Cliente: " />
						<p:inputText size="5" required="true" disabled="true"
							requiredMessage="Informe a solicitação!"
							value="#{LancamentoBacking.codigoLancamento}" />
						<p:commandButton icon="ui-icon-search" />
					</h:panelGrid>

					<h:panelGrid columns="2">
						<h:outputText value="Cliente....:" />
						<p:inputText size="40" disabled="true"
							value="#{LancamentoBacking.nomeSolicitante}" />

					</h:panelGrid>
					<br />
					<p:separator />
					<p:tabView>
						<p:tab title="Lançamentos">

						</p:tab>
						
						<p:tab title="Lançamentos estornados">
						
						</p:tab>
					</p:tabView>
					<br />
					<div align="center">
						<h:panelGrid columns="4">
							<p:commandButton value="Registrar Baixa" ajax="false"
								action="#{LancamentoBacking.salvar}" update="growl"
								icon="ui-icon-disk" />
							<p:commandButton value="Emitir Recibo" ajax="false"
								action="#{LancamentoBacking.geraRecibo}" update="growl"
								icon="ui-icon-print" onclick="this.form.target='_blank'" />
							<p:commandButton value="Cancelar" action="#" ajax="false"
								icon="ui-icon-cancel" />
						</h:panelGrid>
					</div>
				</p:panel>
			</h:form>
		</ui:define>
	</ui:decorate>
</h:body>
</html>